package a.h;

import javax.swing.*;
import javax.swing.table.TableCellRenderer;
import java.awt.*;
import java.util.HashMap;
import java.util.Map;

final class qb
  implements ListCellRenderer, TableCellRenderer, cd.t_
{
  private ob a;
  private final de b;
  private final rd c;
  private final Map d;
  private final String e;
  private tb f;
  
  public qb(ec paramec, ob paramob)
  {
    this.a = paramob;
    this.b = new de();
    this.c = new rd();
    this.d = new HashMap();
    this.e = (nb.a(paramec) + ".VALUE.");
  }
  
  public Component getTableCellRendererComponent(JTable paramJTable, Object paramObject, boolean paramBoolean1, boolean paramBoolean2, int paramInt1, int paramInt2)
  {
    int i = ec.t;
    if (paramObject != null)
    {
      if (i != 0) {
        break label48;
      }
      if (this.a != null) {
        paramObject = a(paramObject.toString());
      }
    }
    this.b.getTableCellRendererComponent(paramJTable, paramObject, paramBoolean1, paramBoolean2, paramInt1, paramInt2);
    label48:
    if (i == 0) {
      if (this.f != null)
      {
        if (i != 0) {
          break label98;
        }
        this.b.setEnabled(this.f.o());
        if (!ec.s) {
          break label94;
        }
      }
    }
    this.b.setEnabled(true);
    label94:
    label98:
    return this.b;
  }
  
  public Component getListCellRendererComponent(JList paramJList, Object paramObject, int paramInt, boolean paramBoolean1, boolean paramBoolean2)
  {
    int i = ec.t;
    if (paramObject != null)
    {
      if (i != 0) {
        break label46;
      }
      if (this.a != null) {
        paramObject = a(paramObject.toString());
      }
    }
    this.c.getListCellRendererComponent(paramJList, paramObject, paramInt, paramBoolean1, paramBoolean2);
    label46:
    if (i == 0) {
      if (this.f != null)
      {
        if (i != 0) {
          break label96;
        }
        this.c.setEnabled(this.f.o());
        if (!ec.s) {
          break label92;
        }
      }
    }
    this.c.setEnabled(true);
    label92:
    label96:
    return this.c;
  }
  
  private String a(String paramString)
  {
    int i = ec.t;
    boolean bool = ec.s;
    String str1 = this.e + paramString;
    String str2 = (String)this.d.get(str1);
    if (i == 0) {
      if (str2 == null) {
        if ((i != 0) || (this.a != null))
        {
          str2 = this.a.b(str1);
          if (i == 0) {
            if (str2 != null)
            {
              if (i == 0)
              {
                if (str2.equals(str1)) {
                  str2 = paramString;
                }
                this.d.put(str1, str2);
              }
              if (i != 0) {
                break label138;
              }
              if (!bool) {
                return str2;
              }
            }
          }
          this.d.put(str1, paramString);
          label138:
          if (!bool) {}
        }
        else
        {
          str2 = paramString;
        }
      }
    }
    return str2;
  }
  
  public void a(tb paramtb)
  {
    int i = ec.t;
    this.f = paramtb;
    if (i == 0) {
      if ((this.c instanceof cd.t_)) {
        ((cd.t_)this.c).a(paramtb);
      }
    }
    if ((i != 0) || ((this.b instanceof cd.t_))) {
      ((cd.t_)this.b).a(paramtb);
    }
  }
  
  public tb a()
  {
    return this.f;
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.h.qb

 * JD-Core Version:    0.7.0.1

 */